<%@ page language="java"
         contentType="text/html; charset=UTF-8"
         pageEncoding="UTF-8"
         import="java.util.Map"
         import="com.shxt.hotel.background.Consume"
%>
<%
    request.setCharacterEncoding("UTF-8");
    Map<String, String[]> paraMap = request.getParameterMap();
    // for(Map.Entry<String, String[]> entry : paraMap.entrySet()){
    //     out.println(entry.getKey() + " : " + entry.getValue()[0] + "<br/>");
    // }
    Consume consume = new Consume();
    int row = consume.addConsume(paraMap);
    
    consume.close();
    response.sendRedirect("../consume.jsp");
%>